<script>
import Vue from 'vue'
import { NavBar } from 'vant';

Vue.use(NavBar);

export default {
  data() {
    return {
      id: 0
    }
  },

  methods: {
    onClickLeft() {
      this.$router.back()
    }
  },

  mounted() {
    this.id = this.$route.query.id
  }
}
</script>

<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <div>
      {{id}}
    </div>
  </div>
</template>

<style lang="scss">
  
</style>
